<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <h2>{{message}}</h2>
  <my-cpn></my-cpn>
  <cpn></cpn>
</div>
<script src="../vue.js"></script>
<script>
  Vue.component('my-cpn', {
    template: `<div>
<h2>我是标题</h2>
<p>我是内容,哈哈哈</p>
</div>`
  })
  const app = new Vue({
    el: '#app',
    data: {
      message: 'hello'
    },
    components: {
      cpn: {
        template: `<div>
<h2>我是标题</h2>
<p>我是内容,哈哈哈</p>
</div>`
      }
    }
  })
</script>
</body>
</html>
